﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Drawing.Drawing2D;

namespace Message
{
    public partial class MessageForm1 : Form
    {
        public MessageForm1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageForm2 frm2 = new MessageForm2();
            String titleText = "标题党";
            String contentText = "内容内容内容内容内容内容试试试试试试试试试试试试试试试试好哇好哇好哇好哇好哇好哇试试试试试试试试试试试试试试试试";
            Rectangle TitleRectangle = new Rectangle(50, 20, 45, 45);
            Rectangle TitlebarRectangle = new Rectangle(0, 0, 150, 50);
            Rectangle ContentRectangle = new Rectangle(10, 50, 130, 50);
            Rectangle CloseBtnRectangle = new Rectangle(0, 100, 150, 50);
            frm2.ShowForm(titleText, contentText, TitleRectangle, TitlebarRectangle, ContentRectangle, CloseBtnRectangle);          
        }
    }
}
